<?php
html::printPath(array(
        'seminar.form-title' => 'admin/seminar/all', 
        $seminar['name'] => '/admin/seminar/display?id=' . $seminar['id'],
        'seminarOrgPayment.listing' => 'admin/seminarOrgPayment/listing?seminar_id=' . $seminar['id'],
		'application.page-title-' . (sql::isPersistent($formData) ? 'edit' : 'insert') => '',
    )
);
$msg->printMessages();

$fb = new FormBuilder('seminarOrgPayment', $formData);
$fb->hidden('seminar_id');
$fb->hidden('fromAccounts');
$fb->comboBox('organization_id', $organizationOptions)->required();
$fb->integer('amount')->required();
$fb->comboBox('currency_code', $currencyOptions)->required();
$fb->text('payment_identification');
$fb->date('received_on');
$fb->textarea('notes');
$fb->submitButton();
$fb->write();
